package edu.sctu.zcy.month201505.day20150506.unusual;

/**
 * Created by user24 on 2015/5/6.
 */
public class MainThrowsDemo {
    //此时在主方法中的所有异常都可以不用try--catch进行处理

    public static void main(String[] args) {

       Math math = new Math();



            System.out.println(math.div(5,0));
            throw new ArithmeticException();

        }
    }

